﻿@model SysCompanyEmployee
@{
	var gender = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("Gender") && p.Worth.Equals(Model.Gender));
	var education = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("Education") && p.Worth.Equals(Model.Education));
	var salerytype = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("SaleryType") && p.Worth.Equals(Model.SaleryType));
	var relaxing = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("WayOfRelaxing") && p.Worth.Equals(Model.WayOfRelaxing));
	var working = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("WayOfWorking") && p.Worth.Equals(Model.WayOfWorking));
	var householdrequirement = Common.Dictionary.FirstOrDefault(p => p.Category.Equals("HouseholdRequirements") && p.Worth.Equals(Model.HouseholdRequirements));
	var agerange = string.IsNullOrWhiteSpace(Model.AgeFrom) && string.IsNullOrWhiteSpace(Model.AgeTo) ? "无要求" :
		string.IsNullOrWhiteSpace(Model.AgeFrom) ? "大于" + Model.AgeFrom + "岁" :
		string.IsNullOrWhiteSpace(Model.AgeTo) ? "小于" + Model.AgeTo + "岁" :
		Model.AgeFrom + "-" + Model.AgeTo + "岁";
	var workrelax = working == null && relaxing == null ? "" :
		working == null ? relaxing.Caption :
		relaxing == null ? working.Caption :
		working.Caption + "+" + relaxing.Caption;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>打印招聘委托信息 - 人力资源管理</title>
    <script src="/scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
    <link href="/css/common_old.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
		a{display:none;}
		.innerDialogRow{padding:7px 4px;}
		.width150{width:180px;}
		.width400{width:473px;}
		.innerDialogRowLabel{font-size:1.5em;color:Black;width:100px;font-weight:bold;text-align:left;}
		.underline{font-size:12pt;font-weight:bold;text-align:left;}
		.center{text-align:center;}
		.right{text-align:right;}
		h1{font-size:24pt;}
		h2{font-size:18pt;}
	</style>
</head>
<body>
<center>
    <div style="width:90%;text-align:left;">
        <center>
            <div><h1>编号&nbsp;<label id="csysno">@Model.SysCompany.SysNo</label></h1></div>
            <div><h2>单位性质：<label id="cnature">@Model.SysCompany.Nature</label></h2></div>
			<div>
				<div class="innerDialogRow">&nbsp;</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">岗位：</label>
					<label class="width150 underline center" id="job">@Model.Caption</label>
					<label class="innerDialogRowLabel"> 性别：</label>
					<label class="width150 underline center" id="sex">@(gender==null?"不限":gender.Caption)</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">学历：</label>
					<label class="width150 underline center" id="education">@(education==null?"不限":education.Caption)</label>
					<label class="innerDialogRowLabel">年龄：</label>
					<label class="width150 underline center">@agerange</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">工作内容：</label>
					<label class="width400 underline" id="workcontent">@Model.Description</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">要求：</label>
					<label class="width400 underline" id="detial">@Model.JobRequirements</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">待遇：</label>
					<label class="width400 underline">@Model.SalaryDescription</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">公司概况：</label>
					<label class="width400 underline">@Model.SysCompany.Description</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel">工作地点：</label>
					<label class="width150 underline center">@Model.Workplace</label>
					<label class="innerDialogRowLabel">户籍要求：</label>
					<label class="width150 underline center">@(householdrequirement!=null?householdrequirement.Caption:"不限")</label>
				</div>
				<div class="innerDialogRow">
					<label class="innerDialogRowLabel"></label>
					<label class="width400 right" id="publishdate">@string.Format("{0:yyyy-MM-dd}",Model.PublishDate)</label>
				</div>
			</div>
        </center>
    </div>
</center>
</body>
</html>
